home *** CD-ROM | disk | FTP | other *** search
- this.resetVars = function()
- {
- var t = this;
- t.clearArrays();
- t.ad = t.ads;
- t.hd = t.hds;
- t.grav = t.initGrav = 0.2;
- t.f = 0.95;
- t.score = 0;
- t.gameDisplay.scoreTxt = "Score: 0";
- t.gameDisplay.countDown.gotoAndStop("blank");
- t.numLives = 10;
- t.launcher.my = 0;
- t.launcer.hoverAng = 0;
- t.launcher.maxS = t.launcher.initMaxS = 3;
- t.power = 0;
- t.charge = false;
- t.beginCharge = false;
- t.chargeS = t.initChargeS = 0.7;
- t.curArrow = new Array();
- t.numShots = 1;
- t.launcher.powerBar.gotoAndStop("blank");
- t.reloading = false;
- t.launcher.cupid.body.arms.anim.gotoAndPlay("reload");
- t.curAng = 0;
- t.hdel = 10;
- t.htim = 0;
- t.hmyc = t.inithmyc = 1;
- t.heartSize = t.initHeartSize = 100;
- t.comboCount = 0;
- t.puTim = 0;
- t.puDel = 200;
- t.launcher.hSpuTim = 0;
- t.launcher.gpuTim = 0;
- t.launcher.cpuTim = 0;
- t.launcher.mSpuTim = 0;
- t.launcher.hSIpuTim = 0;
- t.launcher.tSpuTim = 0;
- t.arrowsFired = 0;
- t.misses = 0;
- t.heartsHit = 0;
- t.fliesHit = 0;
- t.accuracy = 0;
- t.maxHits = 0;
- t.maxPts = 0;
- t.timer = 0;
- };
- this.resetVars();
- this.clearArrays = function()
- {
- var t = this;
- var i = t.curArrow.length - 1;
- while(i >= 0)
- {
- t.curArrow[i].removeMovieClip();
- t.curArrow.splice(i,1);
- i--;
- }
- var i = t.arrowA.length - 1;
- while(i >= 0)
- {
- t.arrowA[i].removeMovieClip();
- t.arrowA.splice(i,1);
- i--;
- }
- var i = t.heartA.length - 1;
- while(i >= 0)
- {
- t.heartA[i].removeMovieClip();
- t.heartA.splice(i,1);
- i--;
- }
- var i = t.flyA.length - 1;
- while(i >= 0)
- {
- t.flyA[i].removeMovieClip();
- t.flyA.splice(i,1);
- i--;
- }
- };
-